<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
    <link rel="stylesheet" href="../../static/layui/css/layui.css" th:src="@{/static/layui/css/layui.css}" media="all">
    <style type="text/css">
    </style>
<body>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
      <legend style="font-size: 18px;color: #19a2e3;font-weight: bold">添加活动</legend>
    </fieldset>
    <form class="layui-form">
        <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">活动名称<i style="color: red">*</i></label>
              <div class="layui-input-inline">
                <input type="text" name="activityName" readonly th:value="${activityInfo.activityName}"  lay-verify="activityName" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">链接地址</label>
              <div class="layui-input-inline">
                <input type="text" name="url" readonly th:value="${activityInfo.url}" autocomplete="off" class="layui-input">
              </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">开始时间</label>
              <div class="layui-input-inline">
                <input type="text" id="startTime" readonly th:value="${#dates.format(activityInfo.startTime, 'yyyy-MM-dd HH:mm:ss')}" name="startTime" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
              </div>
            </div>
           <div class="layui-inline">
              <label class="layui-form-label">结束时间</label>
              <div class="layui-input-inline">
                <input type="text" id="endTime" readonly name="endTime" th:value="${#dates.format(activityInfo.endTime, 'yyyy-MM-dd HH:mm:ss')}"  placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
              </div>
           </div>
        </div>

        <div class="layui-form-item">
           <div class="layui-inline">
              <label class="layui-form-label">支付金额</label>
              <div class="layui-input-inline">
                <input type="text" name="price" readonly th:value="${activityInfo.price}" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-inline">
              <label class="layui-form-label">参与人数</label>
              <div class="layui-input-inline">
                <input type="text" name="personNum" readonly th:value="${activityInfo.personNum}" autocomplete="off" class="layui-input">
              </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">绑定套餐</label>
                <div class="layui-input-inline">
                    <select name="packageId" lay-verify="required" lay-search="" disabled>
                      <option value="">直接选择或搜索选择</option>
                      <option th:each="list : ${packageList}" th:selected="${list.id == activityInfo.packageId}" th:value="${list.id}" th:text="${list.name}">layer</option>
                    </select>
              </div>
            </div>
             <div class="layui-inline">
              <label class="layui-form-label">转发标题</label>
              <div class="layui-input-inline">
                <input type="text" name="sendTitle" readonly  th:value="${activityInfo.sendTitle}" autocomplete="off" class="layui-input">
              </div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">封面设置</label>
            <div class="layui-input-inline">
                <input type="text" name="sendTitle" readonly  th:value="${activityInfo.imgUrl}" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label" style="margin-left: 15px;">转发路径</label>
            <div class="layui-input-inline">
                <input type="text" name="sendTitle" readonly  th:value="${activityInfo.sendImgUrl}" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">转发内容</label>
            <div class="layui-input-inline">
               <textarea name="sendInfo" readonly  th:text="${activityInfo.sendInfo}" placeholder="请输入内容" class="layui-textarea"></textarea>
            </div>
            <label class="layui-form-label" style="margin-left: 15px;">活动说明</label>
            <div class="layui-input-inline">
               <textarea name="activityInfo" readonly th:text="${activityInfo.activityInfo}" placeholder="请输入内容" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
              <a class="layui-btn layui-btn-normal" onclick="parent.layer.closeAll();">取 消</a>
            </div>
        </div>
    </form>
    <script src="https://hkres.etalk365.com/public/lib/jquery/jquery.min.js" type="text/javascript"></script>
    <script src="../../static/layui/layui.js" th:src="@{/static/layui/layui.js}" ></script>
    <script>
        layui.use(['form', 'layedit', 'laydate'], function(){
          var form = layui.form;
        });
    </script>

</body>
</html>
